The Script Editor's Script Tokens Pane allows you to indicate the tokens your script produces and that will be available to other activities.
To open the Script Tokens Pane
To add tokens from your script to the Script Tokens Pane
on the toolbar of the Script Tokens Pane. Any tokens you created with your script via the SetTokenValue or SetActivityTokenValue methods will be listed in the pane. To modify these tokens, see the edit section below.Note: By default, the Script Editor will automatically detect the creation of tokens in your script files and add them to the Script Tokens pane when the Script Editor is closed. To change this behavior, clear the Automatically detect tokens when the Script Editor is closed option in the Script Editor Options.
To create a new token with the Script Tokens Pane
in the upper left corner of the pane's toolbar.
Note: You must select Global when you are modifying the values of preexisting tokens in your workflow. Otherwise, the activity will create a new token (with the same name as the preexisting token) listed under the Script activity in the token menu.
Note: Any token value that is an object that implements the System.Collections.ICollection interface will cause the token to be treated as a multi-value token regardless of whether this attribute is selected. We recommend that if you want to create a multi-value token, your token's value's class should implement System.Collections.ICollection.
To edit tokens in the Script Token Pane
on the Script Token Pane's toolbar menu. Make any desired changes in the Script Token Editor, and click OK.
Note: Use the SetTokenValue method with global tokens, and the SetActivityTokenValue method with non-global (i.e., activity) tokens.
on the Script Tokens Pane toolbar.
on the Script Tokens Pane toolbar. Note that this action is irreversible. |
This documentation is specific to version 9.0. You can find the most up-to-date help files for the latest version at Current Online Laserfiche Product Help Files. For further help or feedback, please see the Laserfiche Support Site. |
© 2013 Laserfiche |